export const databaseConfig = () => ({
  database: {
    host: process.env.DATABASE_HOST || 'localhost',
    port: parseInt(process.env.DATABASE_PORT || '5432'),
    username: process.env.DATABASE_USERNAME || 'postgres',
    password: process.env.DATABASE_PASSWORD || 'password',
    database: process.env.DATABASE_NAME || 'cms_db',
    ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false
  }
})
